'use strict'
const Router = require('koa-router')
const Api = require('../controllers/api')  

const router = Router({
  prefix: '/api'
});
router.post('/forecast',Api.forecast)
router.post('/optimization',Api.optimization)
router.post('/schedule',Api.schedule)
router.post('/class',Api.class)
router.post('/statistics',Api.statistics)

// for require auto in index.js
module.exports = router;